/*=============== GOOGLE FONTS ===============*/

@import url("https://fonts.googleapis.com/css2?family=Italiana&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
	--header-height: 3.5rem;

	/*========== Colors ==========*/
	/*Color mode HSL(hue, saturation, lightness)*/
	--first-color: #d2c1af;
	--first-color-alt: #372d24;
	--second-color: #292136;
	--second-color-alt: #211b15;
	--text-color: #cfcfcf;
	--white-color: #fff;
	--body-color: #0b0c0c;

	/*========== Font and typography ==========*/
	/*.5rem = 8px | 1rem = 16px ...*/
	--body-font: "Roboto", sans-serif;
	--design-font: "Italiana", sans-serif;
	--h1-font-size: 2.5rem;
	--h2-font-size: 1.25rem;
	--h3-font-size: 1rem;
	--normal-font-size: 1.5rem;
	--small-font-size: 1.2rem;
	--smaller-font-size: 0.75rem;

	/*========== Font weight ==========*/
	--font-medium: 500;
	--font-semi-bold: 600;

	/*========== z index ==========*/
	--z-tooltip: 10;
	--z-fixed: 1000;
}

/* @media screen and (max-width: 968px) {
	:root {
		--h1-font-size: 2.25rem;
		--h2-font-size: 1.5rem;
		--h3-font-size: 1.25rem;
		--normal-font-size: 1rem;
		--small-font-size: 0.875rem;
		--smaller-font-size: 0.813rem;
	}
} */

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

html {
	font-size: 62.5%;
	scroll-padding-top: 9rem;
	scroll-behavior: smooth;
}

html::-webkit-scrollbar {
	width: 0.5rem;
}

html::-webkit-scrollbar-track {
	background: transparent;
}
body {
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	background-color: var(--body-color);
	color: var(--white-color);
}

h1,
h2,
h3 {
	color: var(--title-color);
	font-weight: var(--font-semi-bold);
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
	padding: 0 5rem;
}

/* .grid {
	display: grid;
	gap: 1.5rem;
} */

.section {
	padding: 6rem 3rem;
}

.section__title {
	font-size: var(--h2-font-size);
	text-align: center;
	margin-bottom: 2.5rem;
}

.main {
	overflow: hidden;
}

.button {
	display: flex;
	align-items: center;
	padding: 1.5rem 2.2rem;
	color: var(--body-color);
	background-color: hsl(31, 28%, 65%);
	text-decoration: none;
	font-size: 1.4rem;
	font-weight: bold;
	border: none;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	text-align: center;
}

.button i {
	margin-left: 5px;
}

.button::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background-color: var(--first-color-alt);
	transition: left 0.4s;
	z-index: 0;
}

.button:hover::before {
	left: 0;
}

.button span {
	position: relative;
	text-align: center;
	margin: 0 auto;
	z-index: 100;
	transition: color 0.4s;
}

.button:hover span {
	color: #fff;
}

/*=============== HEADER & NAV ===============*/
.header {
	display: flex;
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	width: 100%;
	height: 2rem;
	padding: 3rem 2rem;
	background: #0b0c0c7b;
	color: #ffff;
	align-items: center;
	justify-content: space-between;
	box-shadow: 0 5px 5px #171a1d57;
	z-index: 1000;
}

.nav-logo,
.nav-toggle {
	color: var(--first-color);
	display: inline-flex;
}

.nav-logo {
	font-size: 2rem;
	align-items: center;
	-moz-column-gap: 0.25rem;
	column-gap: 0.25rem;
	font-weight: var(--font-medium);
	transition: 0.3s;
}

.nav-logo i {
	font-size: 2.5rem;
}

.nav-logo:hover {
	color: var(--text-color);
}

.nav-toggle {
	font-size: 2.5rem;
	cursor: pointer;
	display: none;
}

.nav-close {
	display: none;
}

.nav-list {
	display: flex;
	justify-content: space-between;
	gap: 5rem;
}

.nav-link {
	color: var(--text-color);
	font-size: 1.5rem;
	transition: 0.4s ease;
}

.nav-link:hover {
	color: var(--first-color);
}

section.home {
	background: linear-gradient(rgba(0, 0, 0, 0.77), rgba(0, 0, 0, 0.77)),
		url(assets/images/home.jpg);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.home-container {
	height: 100vh;
	display: flex;
	text-align: center;
	align-items: center;
	justify-content: center;
}

.home-data {
	/* max-width: 90%; */
}
.home-title {
	font-size: 6rem;
	line-height: 1.2;
	font-family: var(--design-font);
	color: var(--white-color);
	letter-spacing: 0.15rem;
}

.auto-type {
	/* Ensure it takes up only as much space as needed */
	width: 800px; /* Set this to the maximum width of the auto-typed text */
	overflow: hidden; /* Hide any overflow text */
	white-space: nowrap; /* Prevent text from wrapping */
}

.home-title span {
	color: var(--first-color);
}

.home-subtitle {
	font-size: var(--normal-font-size);
	margin: 1.8rem 0;
	max-width: 500px;
	line-height: 1.6;
}

.home-buttons {
	display: flex;
	justify-content: center; /* Center the buttons */
	align-items: center; /* Center align items vertically */
	gap: 2rem;
	margin: 0 auto;
	font-size: 3rem;
	flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
	padding: 1rem;
}

.services-section-container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	align-items: center;
	justify-content: center;
}

.services-card {
	padding: 5rem;
	background: var(--first-color-alt);
	align-items: center;
	justify-content: center;
	text-align: center;
}

.services-card h4 {
	font-size: 1.5rem;
}

.services-card-heading {
	font-family: var(--design-font);
	margin-top: 2rem;
	margin-bottom: 5rem;
	font-size: 2rem;
}
.services-card-description {
	margin: 5rem 0;
}
.card-icon {
	width: 80px;
	margin: 0 auto;
}

.card-1,
.card-3 {
	color: var(--first-color);
	transition: 0.5s ease;
}

.card-1:hover,
.card-3:hover {
	background: #211b15;
}

.card-2,
.card-4 {
	background-color: var(--first-color);
	color: var(--first-color-alt);
	transition: 0.5s ease;
}

.card-2:hover,
.card-4:hover {
	background: hsl(31, 28%, 65%);
}

.services-card-button {
	color: var(--first-color);
	align-items: center;
	margin-top: 2rem;
	font-size: 1.4rem;
	font-weight: 500;
	transition: 0.5s ease;
}

.services-card-button:hover {
	transform: scale(1.1);
}

.card-1 .services-card-button,
.card-3 .services-card-button {
	color: var(--first-color);
	transition: 0.5s ease;
}

.card-2 .services-card-button,
.card-4 .services-card-button {
	color: var(--first-color-alt);
	transition: 0.5s ease;
}

.aboutus-section-container {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	/* align-items: center; */
	justify-content: center;
	gap: 5rem;
}

.about-image {
	background-image: url(assets/images/03_condo-loft-3-300x169.jpg);
	background-position: center;
	background-size: cover;
}

.about-content-header {
	font-family: var(--design-font);
	font-size: 4rem;
	line-height: 1.3;
}

.about-content-header span {
	color: var(--first-color);
}

.about-content-description {
	font-size: var(--normal-font-size);
	margin: 4rem 0;
	line-height: 1.6;
}

.sub-about-content {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 2rem;
}

.sub-content {
	display: flex;
	align-items: center;
	justify-content: center;
}

.sub-content-icon {
	display: flex;
	margin-right: 2rem;
	width: 50px;
}

.sub-content h4 {
	font-size: 2rem;
	color: var(--first-color);
}

.gallery-container {
	display: grid;
	grid-template-columns: repeat(4, 1fr); /* 4 equal columns by default */
	grid-auto-rows: 1fr; /* Equal row height */
}

.gallery-card {
	position: relative;
	overflow: hidden;
	text-align: center;
	height: 30rem;
}

.gallery-1 {
	background: url(assets/images/02_modern-architecture-of-valencia-1.jpg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 0.3s ease-in-out;
	overflow: hidden;
}

.gallery-2 {
	background: url(assets/images/gallery-2.jpg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 0.3s ease-in-out;
	overflow: hidden;
}
.gallery-3 {
	background: url(assets/images/gallery-3.jpg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 0.3s ease-in-out;
	overflow: hidden;
}
.gallery-4 {
	background: url(assets/images/gallery-4.jpg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 0.3s ease-in-out;
	overflow: hidden;
}
.gallery-5 {
	background: url(assets/images/gallery-5.jpg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 0.3s ease-in-out;
	overflow: hidden;
}

.gallery-6 {
	background: url(assets/images/gallery-6.jpg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 0.3s ease-in-out;
	overflow: hidden;
}
.gallery-7 {
	background: url(assets/images/gallery-7.jpg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 0.3s ease-in-out;
	overflow: hidden;
}
.gallery-8 {
	background: url(assets/images/gallery-8.jpg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 0.3s ease-in-out;
	overflow: hidden;
}
.gallery-card:hover .gallery-1 {
	transform: scale(1.1); /* Grow the image on hover */
}

.gallery-card-layer {
	display: flex;
	background: linear-gradient(
		to right,
		hsla(180, 4%, 5%, 0.639),
		hsla(180, 4%, 5%, 0.507),
		hsla(180, 4%, 5%, 0.237)
	);
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 100%;
	align-items: center;
	justify-content: center;
	transition: 0.6s ease;
}

.layer-title {
	margin: 1.5rem;
	font-size: 2.2rem;
	font-family: var(--design-font);
	letter-spacing: 2;
	color: var(--first-color);
}

.gallery-card:hover .gallery-card-layer {
	transform: translateX(-100%);
}

.parallax {
	/* The image used */
	background-image: url(assets/images/parallax-background.jpg);

	/* Full height */
	height: 100vh;

	/* Create the parallax scrolling effect */
	background-attachment: fixed;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.parallax-content-layer {
	padding: 10rem 5rem;
	background: var(--first-color-alt);
	position: absolute;
	left: 5rem;
	width: 40%;
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	box-sizing: border-box;
}

.parallax-content-header {
	font-family: var(--design-font);
	letter-spacing: 0.3rem;
	font-size: 2.8rem;
	color: var(--first-color);
}

.parallax-content-header i {
	margin-right: 1rem;
}

.parallax-content-sub-title {
	margin: 3rem 0;
	font-size: 2.5rem;
	line-height: 3rem;
	color: var(--white-color);
}

.parallax-content-sub-title span {
	color: var(--first-color);
}

.parallax-layer-description {
	line-height: 1.4;
	margin-bottom: 3rem;
	font-size: 1.5rem;
}

.parallax-content-list {
	display: block;
	flex-direction: column;
	padding-left: 2rem;
	margin-bottom: 4rem;
}

.parallax-content-item {
	margin-bottom: 2rem;
	font-weight: 500;
	font-size: 1.5rem;
}

.parallax-content-item i {
	margin-right: 1rem;
	color: var(--first-color);
}

.parallax-layer-button a {
	display: flex;
	color: var(--first-color);
	font-weight: 600;
	transition: 0.4s;
}

.parallax-layer-button:hover {
	transform: scale(1.1);
}

.counter-grid-container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	justify-content: space-between;
	margin: 0 auto;
	align-items: center;
	padding: 5rem;
}

.counter {
	position: relative;
	text-align: center;
}

.counter h1 {
	font-size: 4.5rem;
	margin-bottom: 1rem;
	font-family: var(--design-font);
	color: var(--first-color);
}

.counter h3 {
	font-size: 1.5rem;
	color: var(--first-color);
}

.counter:not(:last-child):before {
	content: "";
	background: #fff;
	position: absolute;
	width: 2px;
	height: 3rem;
	top: 50%;
	transform: translateY(-50%);
	right: -1rem;
}

section.book-appointment {
	background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
		url(assets/images/background-2.jpg);

	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	background-repeat: no-repeat;
	align-items: center;
}

.appointment-container {
	padding: 10rem;
	align-items: center;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 5rem;
}

.text h2 {
	font-family: var(--design-font);
	color: var(--white-color);
	font-size: 3.5rem;
	letter-spacing: 0.2rem;
	margin-bottom: 2rem;
}

.text span {
	color: var(--first-color);
}

.text p {
	font-size: 1.7rem;
	line-height: 1.5;
}

.appointment-buttons {
	display: flex;
	flex-direction: column;
}

.appointment-button {
	background: var(--first-color);
	color: var(--body-color);
	width: 100%;
	padding: 1.5rem;
	text-align: center;
	font-weight: 600;
	border: 1.5px solid var(--first-color);
	transition: 0.5s ease;
	margin-bottom: 2rem;
}

.appointment-button:hover {
	background: transparent;
	border: 1.5px solid var(--first-color);
	color: var(--first-color);
	transform: scale(1.05);
}

.contact-details {
	display: flex;
	justify-content: space-between;
	width: 100%;
}

.call,
.mail {
	display: flex;
	font-size: 1.5rem;
}

.call i,
.mail i {
	color: var(--body-color);
	background-color: var(--first-color);
	margin-right: 1.2rem;
	padding: 0.4rem;
}

.newsletter-container {
	padding: 5rem 10rem;
	align-items: center;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 5rem;
}

.newsletter-text h2 {
	font-family: var(--design-font);
	color: var(--first-color);
	margin-bottom: 2rem;
	font-size: 3rem;
	letter-spacing: 0.2rem;
}

.newsletter-text p {
	color: var(--white-color);
}

.input-field {
	display: flex;
	gap: 1rem;
}

.name-field,
.email-field {
	border: none;
	width: 100%;
	height: 40px;
	background: #372d24;
	color: var(--first-color);
	outline: none;
	padding: 0.7rem;
}

form .button {
	width: 100%;
	text-align: center;
	margin-top: 1rem;
}

/*=================FOOTER SECTION ==============*/
section.footer {
	padding-top: 10rem;
	border-top: 1px solid var(--first-color);
	background: var(--body-color);
	color: var(--text-color);
}

.footer-container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	justify-content: space-between;
}

.nav-logo {
	font-size: 1.5em;
	color: var(--first-color);
	text-decoration: none;
}

.nav-logo i {
	margin-right: 10px;
}

.footer-column p {
	margin: 10px 0;
	padding-right: 2rem;
}

.social-links h4 {
	margin-bottom: 10px;
}

.socials a {
	font-size: 2.2rem;
	color: #fff;
	margin-right: 10px;
	text-decoration: none;
	border: 0.5px solid var(--first-color);
	padding: 1rem;
	transition: 0.5s ease;
}

.socials a:hover {
	background: var(--first-color);
	border: 1px solid var(--first-color);
	color: var(--first-color-alt);
}

.link-section h4,
.contact-section h4,
.social-links h4 {
	margin-bottom: 20px;
	color: var(--first-color);
}

.footer-nav-menu a {
	display: block;
	color: var(--white-color);
	text-decoration: none;
	margin-bottom: 10px;
	font-size: 1.5rem;
	transition: 0.5s ease;
}

.footer-nav-menu a:hover {
	text-decoration: underline;
	color: var(--first-color);
}

.contact-details {
	display: block;
}
.contact-details h3 {
	display: block;
	align-items: center;
	margin-bottom: 10px;
}

.contact-details i {
	font-size: 1.5rem;
	color: var(--first-color-alt);
	margin-right: 10px;
	text-decoration: none;
	background: var(--first-color);

	padding: 0.5rem;

	transition: 0.5s ease;
}

.footer-bottom {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid #555;
	margin-top: 20px;
}

.footer-bottom p {
	margin: 0;
}

.author-link {
	color: var(--text-color);
	text-decoration: none;
}

.author-link:hover {
	text-decoration: underline;
}

/*=============== SCROLL UP ===============*/
.scrollup {
	position: fixed;
	right: 1rem;
	bottom: -30%;
	background-color: hsla(0, 0%, 100%, 0.1);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	display: inline-flex;
	padding: 0.45rem;
	border-radius: 0.5rem;
	font-size: 1.5rem;
	color: var(--white-color);
	z-index: var(--z-tooltip);
	transition: 0.4s;
}

.scrollup:hover {
	transform: translateY(-0.25rem);
}
/* Show Scroll Up*/
.show-scroll {
	bottom: 3rem;
}

@media screen and (max-width: 968px) {
	html {
		font-size: 60%;
	}
	.nav-list {
		gap: 2rem;
	}

	.services-section-container {
		grid-template-columns: repeat(2, 1fr);
	}

	.card-1,
	.card-4 {
		background-color: var(--first-color);
		color: var(--first-color-alt);
		transition: 0.5s ease;
	}

	.card-2,
	.card-3 {
		background: #211b15;
		color: var(--first-color);
		transition: 0.5s ease;
	}

	.card-2:hover,
	.card-3:hover {
		background: #372d24;
	}

	.card-1:hover,
	.card-4:hover {
		background: hsl(31, 28%, 65%);
	}

	.parallax-content-layer {
		padding: 10rem 3rem;
		background: var(--first-color-alt);
		position: absolute;
		left: rem;
		width: 50%;
	}

	.appointment-container {
		padding: 10rem;
		display: grid;
		grid-template-columns: 1fr;
		gap: 2rem;
		text-align: center;
	}

	.footer-container {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 768px) {
	html {
		font-size: 55%;
	}
	.container {
		padding: 0 1rem;
	}

	.nav-menu {
		flex-direction: column;
		position: absolute;
		right: -100%;
		top: 0;
		width: 50%;
		height: 100vh;
		background: var(--body-color);
		padding-top: 10rem;
		align-items: center;
		z-index: 100;
		transition: 0.6s ease;
	}

	.nav-button {
		margin-left: 6rem;
	}

	.nav-toggle,
	.nav-close {
		display: inline-flex;
	}

	.nav-close {
		position: absolute;
		top: 2rem;
		right: 3rem;
		font-size: 2.5rem;
	}

	.nav-list {
		display: block;
		text-align: center;
	}

	.nav-item {
		padding: 2rem;
	}

	.nav-link {
		font-size: 2rem;
	}

	.show-menu {
		right: 0;
		transition: 0.6s ease;
	}

	.home-title {
		font-size: 5rem;
	}

	.home-buttons {
		display: flex;
		flex-direction: column;
		text-align: center;
		font-size: 3rem;
		align-self: center;
		width: 100%;
	}

	.home-buttons .button {
		width: 100%;
		text-align: center;
		margin: 0 auto;
	}

	.button.one {
		margin-bottom: 1rem;
	}

	.aboutus-section-container {
		grid-template-columns: 1fr;
	}

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

	.gallery-container {
		grid-template-columns: repeat(2, 1fr);
	}

	.parallax-content-layer {
		padding: 5rem 2rem;
		background: var(--first-color-alt);
		position: absolute;
		left: 0;
		width: 50%;
	}

	.parallax-content-header {
		font-family: var(--design-font);

		font-size: 2rem;
	}

	.parallax-content-sub-title {
		margin: 3rem 0;
		font-size: 1.8rem;
		line-height: 2.8rem;
		color: var(--white-color);
	}
	.parallax-layer-description {
		line-height: 1.5;
		font-size: 1.5rem;
	}
	.parallax-content-list {
		display: block;
		flex-direction: column;
		padding-left: 1.5rem;
	}

	.parallax-content-item i {
		margin-right: 0.5rem;
	}

	.parallax-content-item {
		font-size: 1.5rem;
	}

	.counter-grid-container {
		grid-template-columns: 1fr 1fr;
		row-gap: 3rem;
	}

	.counter:nth-child(2)::before {
		display: none;
	}

	.appointment-container,
	.newsletter-container {
		padding: 10rem 5rem;
		display: grid;
		grid-template-columns: 1fr;
		text-align: center;
	}

	.footer-container {
		grid-template-columns: (2, 1fr);
		text-align: left; /* Ensure text aligns to the left on mobile */
		gap: 10rem;
	}
}

@media screen and (max-width: 500px) {
	.services-section-container {
		grid-template-columns: 1fr;
	}

	.aboutus-section-container {
		grid-template-columns: 1fr;
	}

	.sub-content {
		display: flex;
		flex-direction: row;
		margin: 2rem;
	}

	.gallery-container {
		grid-template-columns: 1fr;
	}

	.parallax-content-layer {
		padding: 2rem;
		width: 70%;
	}

	.counter-grid-container {
		grid-template-columns: 1fr;
		row-gap: 5rem;
	}

	.counter:not(:last-child)::before {
		width: 90%;
		height: 2px;
		top: initial;
		right: initial;
		bottom: -2rem;
		left: 50%;
		transform: translateX(-50%);
	}

	.input-field {
		display: grid;
		grid-template-columns: 1fr;
	}

	.nav-logo {
		font-size: 20px;
	}

	.socials a {
		font-size: 20px;
	}

	.footer-container {
		display: grid;
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 450px) {
	html {
		font-size: 50%;
	}

	.text h2 {
		text-align: left;
		font-size: 3rem;
	}
	.contact-details {
		display: block;
		align-items: center;
	}

	.call,
	.mail {
		display: flex;
		font-size: 1.8rem;
		margin-top: 2rem;
	}

	.call i,
	.mail i {
		color: var(--body-color);
		background-color: var(--first-color);
		margin-right: 1.2rem;
		padding: 0.4rem;
	}
}

@media screen and (max-width: 350px) {
}
